﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wfrmBandejaOrdenCompra.aspx.cs" Inherits="proyGestionActivos.Gestion.wfrmBandejaOrdenCompra" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPager" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx1" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
        #principal
        {
            width: 900px;
            margin: 0 auto;
        }
        .tabs
        {
            width: 90%;
            margin: 0 auto;
        }
        .fieldset_datos
        {
            width: 100%;
        }
        .campos_vacios
        {
            width: 7em;
        }
        .labels
        {
            width: 125px;
        }
        .tabs fieldset
        {
            margin-top: 1.5em;
        }
        .tabs fieldset #fieldset_content
        {
            padding-left: 7em;
        }
        .tabs fieldset #fieldset_content1
        {
            padding-left: 7em;
        }
        .tabs fieldset .fieldset_filas
        {
            padding: .5em 0;
        }
        .filas
        {
            padding: .5em 3em;
        }
        .tabs .titulo
        {
            width: 100%;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 1em;
            margin-top: .5em;
        }
        .pad
        {
            padding: 0.2cm 1cm 0.2cm 1cm;
            text-align: left;
        }
        
        .p
        {
            padding: 0.2cm 0.6cm 0.2cm 0.6cm;
            text-align: left;
        }
        .pad
        {
            padding: 0.2cm 0.6cm 0.2cm 0.6cm;
            
        }
        .style1
        {
            width: 134px;
        }
        .style2
        {
            width: 102px;
        }
    .style4
    {
        padding: 0.2cm 0.6cm 0.2cm 0.6cm;
        text-align: left;
        width: 329px;
    }
    </style>
    <script type="text/javascript">
        function cargarDescripciones() {
            btnAccion.DoClick();
        }
    </script>
    <script type="text/javascript">
        function soloDocumento(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = "abcdefghijklmnopqrstuvwxyz0123456789";
            especiales = [8, 127];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>

    <script type="text/javascript">
        function soloNumero(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = "0123456789";
            especiales = [8, 127, 46];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">
<div id="principal">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="tabs" style="background-color: White">
                    <div class="titulo">
                        BANDEJA DE ORDEN COMPRA</div>
                    <fieldset>
                        <legend></legend>
                        <div id="fieldset_content">
                            <table style="width: 97%">
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Usuario
                                    </td>
                                    <td class="style1">
                                        <dx:ASPxTextBox ID="txtUsuario" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            ClientEnabled="False">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        <dx:ASPxTextBox ID="txtIDCodigo" runat="server" Width="5px" 
                                            ClientVisible="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Área</td>
                                    <td class="style1">
                                        <dx:ASPxTextBox ID="txtArea" runat="server" Width="170px" ClientEnabled="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        <dx:ASPxTextBox ID="txtIDArea" runat="server" Width="5px" ClientVisible="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Fecha entre
                                    </td>
                                    <td class="fieldset_filas" style="width: 134px">
                                        <dx:ASPxDateEdit ID="txtfechaDesde" runat="server">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADC">
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                    <td class="fieldset_filas">
                                        <dx:ASPxDateEdit ID="txtFechaHasta" runat="server">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADC">
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        &nbsp;
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <table style="width:100%">
                                            <tr>
                                                <td align="center" style="width:25%">
                                                    &nbsp;</td>
                                                <td align="center" style="width:25%">
                                                    <dx:ASPxButton ID="btnBuscar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Buscar" onclick="btnBuscar_Click" ValidationGroup="ADC">
                                                    </dx:ASPxButton>
                                                </td>
                                                 <td align="center" style="width:25%">
                                                     &nbsp;</td>
                                                <td align="center">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="4">
                                                <fieldset>
                                                    <dx:ASPxGridView ID="grdOrdenCompra" runat="server" AutoGenerateColumns="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        Width="95%" EnableCallBacks="False"  
                                                        KeyFieldName="CodigoPrograma">
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn FieldName="NumeroOrdenCompra" VisibleIndex="0" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn VisibleIndex="2" Caption="Área" 
                                                                FieldName="NombreArea">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn VisibleIndex="5" Caption="Requerimiento Funcional">
                                                                <DataItemTemplate>
                                                                    <dx:ASPxButton ID="btnRF" runat="server" onclick="btnRF_Click" Text="RF" 
                                                                        Width="50px">
                                                                    </dx:ASPxButton>
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn VisibleIndex="8" Caption="Base Técnica">
                                                                <DataItemTemplate>
                                                                    <dx:ASPxButton ID="btnBT" runat="server" onclick="btnBT_Click" Text="BT" 
                                                                        Width="50px">
                                                                    </dx:ASPxButton>
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="NumeroLicencias" VisibleIndex="9" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="Sustento" VisibleIndex="10" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="NumeroCuenta" VisibleIndex="11" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="FechaRequerida" VisibleIndex="12" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="estado" VisibleIndex="13" Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="NumeroSolicitud" VisibleIndex="14" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="CodigoRequerimiento" VisibleIndex="15" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="CodigoBaseTecnica" VisibleIndex="16" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="N" VisibleIndex="1">
                                                                <DataItemTemplate>
                                                                    <asp:LinkButton ID="linkPrograma" runat="server" ForeColor="Black" 
                                                                        onclick="linkPrograma_Click" Text='<%# Bind("codigo") %>'></asp:LinkButton>
                                                                </DataItemTemplate>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="CodigoPrograma" Visible="False" 
                                                                VisibleIndex="17">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="CodigoArea" Visible="False" 
                                                                VisibleIndex="6">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Programa" VisibleIndex="4" 
                                                                FieldName="NombrePrograma">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                            ProcessFocusedRowChangedOnServer="True" />
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                            ProcessFocusedRowChangedOnServer="True" />
                                                        <SettingsPager PageSize="10000" Visible="False">
                                                        </SettingsPager>
                                                        <Settings ShowVerticalScrollBar="True" />
                                                        <Settings ShowVerticalScrollBar="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                            CssPostfix="BlackGlass">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                        </Styles>
                                                        <StylesEditors>
                                                            <CalendarHeader Spacing="1px">
                                                            </CalendarHeader>
                                                            <ProgressBar Height="25px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                    </fieldset>
                                                </td>
                                            </tr>
                                            <tr>
                                            <td colspan="2" align="right">
                                                <dx:ASPxButton ID="btnAceptarBan" runat="server" Text="Aceptar" 
                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                    onclick="btnAceptarBan_Click1">
                                                </dx:ASPxButton>
                                            </td>
                                          
                                                    <td colspan="2">
                                                        <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar" 
                                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                            onclick="btnCancelar_Click">
                                                </dx:ASPxButton>
                                            </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>
                    <table width="100%">
                        <tr>
                            <td align="right" class="filas">
                                &nbsp;
                            </td>
                            <td align="left" class="filas">
                                &nbsp;
                            </td>
                        </tr>
                    </table>

                </div>
                <dx:ASPxPopupControl ID="popupConfirmar" runat="server" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                    AllowDragging="True" ClientInstanceName="popupConfirmar" 
                    CloseAction="CloseButton" EnableHotTrack="False" HeaderText="Confirmar" 
                    Modal="True" PopupHorizontalAlign="WindowCenter" 
                    PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" 
                    Width="300px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <table align="center" width="100%">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <dx:ASPxLabel ID="lblmenConfir" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center">
                                                    <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Cancelar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="popupOK" runat="server" 
                    AllowDragging="True" ClientInstanceName="popupOK" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    EnableHotTrack="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                                    PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <table align="center" width="100%">
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <dx:ASPxLabel ID="lblmenOK" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <dx:ASPxButton ID="btnAceptarOK" runat="server" AutoPostBack="False" 
                                                        CausesValidation="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                        CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Aceptar" 
                                                        Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {
	popupOK.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                </dx:ASPxPopupControl>
                            <br />
                <dx:ASPxPopupControl ID="popupConfirProg" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupConfirProg" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    EnableHotTrack="False" HeaderText="Confirmar" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="300px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                            <table align="center" width="100%">
                                <tr>
                                    <td align="center" colspan="2">
                                        <dx:ASPxLabel ID="lblmenConfir0" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <dx:ASPxButton ID="btnAceptarPrograma" runat="server" CausesValidation="False" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Aceptar" 
                                            Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	popupConfirProg.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="center">
                                        <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" 
                                            CausesValidation="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cancelar" 
                                            Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	popupConfirProg.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                            <br />
                <dx:ASPxPopupControl ID="popupAgregarProg" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupAgregarProg" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    HeaderText="Agregar Programa" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="400px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" 
                            SupportsDisabledAttribute="True">

                            <table style="width: 97%">
                                <tr>
                                    <td class="p">
                                        Codigo
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtCodigoPrograma" runat="server" ClientEnabled="False" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="170px" 
                                            BackColor="#E6E3E8">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td>
                                    </td>
                                    <td >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="p">
                                        Programa
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtPrograma" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET" 
                                                ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="p">
                                        Descripción
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtDescripcion" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="400" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET" 
                                                ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="p">
                                        Fabricante
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtFabricante" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET" 
                                                ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="p">
                                        Estado
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboEstado" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Activo" Value="1" />
                                                <dx:ListEditItem Text="Inactivo" Value="0" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="p">
                                        <dx:ASPxCheckBox ID="chkConcurrente" runat="server" CheckState="Unchecked" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Concurrente">
                                            <ValidationSettings ErrorText="Error has ocurredd">
                                            </ValidationSettings>
                                        </dx:ASPxCheckBox>
                                    </td>
                                    <td>
                                    </td>
                                    <td >
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                <td colspan="4">
                                <table width="100%">
                                <tr>
                                <td align="center"><dx:ASPxButton ID="btnAgregar" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Agregar" 
                                            ValidationGroup="ADCNET" Width="100px" >
                                        </dx:ASPxButton></td>
                                <td align="center"><dx:ASPxButton ID="btnModificar" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Modificar" 
                                            ValidationGroup="ADCNET" Width="100px">
                                        </dx:ASPxButton></td>
                                <td align="center">  <dx:ASPxButton ID="btnEliminar" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Eliminar" 
                                            ValidationGroup="ADCNET" Width="100px">
                                        </dx:ASPxButton></td>
                                </tr>
                                <tr>
                                <td colspan="3" align="center">
                                <dx:ASPxGridView ID="grdPrograma" runat="server" AutoGenerateColumns="False" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            EnableCallBacks="False" KeyFieldName="CodigoPrograma" 
                                            Width="80%">
                                            <Columns>
                                                <dx:GridViewDataTextColumn FieldName="CodigoPrograma" VisibleIndex="0">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="NombrePrograma" VisibleIndex="1">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Fabricante" VisibleIndex="2">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Descripcion" VisibleIndex="3">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Estado" ShowInCustomizationForm="True" 
                                                    Visible="False" VisibleIndex="4">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Concurrente" 
                                                    ShowInCustomizationForm="True" Visible="False" VisibleIndex="5">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsPager PageSize="10000" Visible="False">
                                            </SettingsPager>
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                CssPostfix="BlackGlass">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                            </Styles>
                                            <StylesEditors>
                                                <CalendarHeader Spacing="1px">
                                                </CalendarHeader>
                                                <ProgressBar Height="25px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                </td>
                                </tr>
                                <tr>
                                <td colspan="3" align="center">
                                <dx:ASPxButton ID="btnCerrar" runat="server" 
                                            CausesValidation="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cerrar" 
                                            Width="100px" OnClick="btnCerrar_Click">
                                            <ClientSideEvents Click="function(s, e) {
	popupAgregarProg.Hide();
}" />
                                        </dx:ASPxButton>
                                </td>
                                </tr>
                                </table>
                                </td>
                                </tr>
                                
                            </table>

                            
                            <br />
                            <br />
                            <br />
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                            <br />
                <br />
                <dx:ASPxPopupControl ID="popupAgregarRF" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupAgregarRF" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    HeaderText="Requerimiento Funcional" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="500px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" 
                            SupportsDisabledAttribute="True">
                  
                            <table style="width: 97%">
                                <tr>
                                    <td class="style4">
                                        N° OC
                                    </td>
                                    <td class="p">
                                        <dx:ASPxTextBox ID="txtOrdenCompraR" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            ClientEnabled="False" BackColor="#E6E3E8">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="p">
                                        N° Req. Funcional</td>
                                    <td class="p">
                                        <dx:ASPxTextBox ID="txtRequerimientoID" runat="server" Width="170px" 
                                            BackColor="#E6E3E8" ClientEnabled="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        Programa</td>
                                    <td class="p">
                                        <dx:ASPxTextBox ID="txtProgramaR" runat="server" Width="170px" 
                                            ClientEnabled="False" BackColor="#E6E3E8">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        N° Licencia</td>
                                    <td class="p" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtLicenciaR" runat="server" Width="170px" 
                                            BackColor="#E6E3E8" ClientEnabled="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="fieldset_filas">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        Sistema operativo</td>
                                    <td class="p" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtSistemaOperativo" runat="server" Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ARF">
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="fieldset_filas">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        Tipo de licencia</td>
                                    <td class="p" style="width: 134px">
                                        <dx:ASPxComboBox ID="cboTipoLicencia" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Servidor" Value="Servidor" />
                                                <dx:ListEditItem Text="Llave" Value="Llave" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True" 
                                                ValidationGroup="ARF">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="fieldset_filas">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        Licencia</td>
                                    <td class="p" style="width: 134px">
                                        <dx:ASPxComboBox ID="cboLicencia" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Usuario" Value="Usuario" />
                                                <dx:ListEditItem Text="Equipo" Value="Equipo" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True" 
                                                ValidationGroup="ARF">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="fieldset_filas">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        Soporte tecnico</td>
                                    <td class="p" style="width: 134px">
                                        <dx:ASPxComboBox ID="cboSoporte" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Telefónico" Value="Telefonico" />
                                                <dx:ListEditItem Text="Personal" Value="Personal" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True" 
                                                ValidationGroup="ARF">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="fieldset_filas">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <table style="width:100%">
                                            <tr>
                                                <td align="center">
                                                &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>
                                                <fieldset>
                                                    <table align="center" width="100%">
                                                        <tr>
                                                            <td align="center">
                                                                <dx:ASPxButton ID="btnGrabarRF" runat="server" 
                                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                                    OnClick="btnGrabar_Click" 
                                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Guardar" 
                                                                    ValidationGroup="ARF" Width="100px">
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td align="center">
                                                                <dx:ASPxButton ID="btnModificarRF" runat="server" 
                                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Modificar" 
                                                                    ValidationGroup="ARF" Width="100px" OnClick="btnModificarRF_Click">
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td align="center">
                                                                <dx:ASPxButton ID="btnCancelarRF" runat="server" CausesValidation="False" 
                                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cancelar" 
                                                                    Width="100px">
                                                                    <ClientSideEvents Click="function(s, e) {
	popupAgregarRF.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table> 
                                                    </fieldset>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                   
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <br />
                <br />
                <dx:ASPxPopupControl ID="popupAgregarBT" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupAgregarBT" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    HeaderText="Base Técnica" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="500px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" 
                            SupportsDisabledAttribute="True">
                            <fieldset>
                        <div id="Div1">
                            <table style="width: 97%">
                                <tr>
                                    <td class="pad">
                                        N° OC
                                    </td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtNBT" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            ClientEnabled="False" BackColor="#E6E3E8">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="pad">
                                        N° Base Tecnica</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtIdBaseTecBT" runat="server" Width="170px" 
                                            BackColor="#E6E3E8" ClientEnabled="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Programa</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtProgramaBT" runat="server" Width="170px" 
                                            ClientEnabled="False" BackColor="#E6E3E8">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="pad">
                                        N° Licencia</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtNLicenciasBT" runat="server" Width="170px" BackColor="#E6E3E8" 
                                            ClientEnabled="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Costo Unitario</td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtCostoUniBT" runat="server" Width="170px" 
                                            AutoPostBack="True" OnTextChanged="txtCostoUniBT_TextChanged">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="BTECNICA" 
                                                ValidateOnLeave="False">
                                                <RegularExpression ErrorText="Formato Incorrecto" 
                                                    ValidationExpression="^(\d|-)?(\d|,)*\.?\d*$" />
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="pad">
                                        Costo Total</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtCostoTotalBT" runat="server" Width="170px" 
                                            ClientEnabled="False">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="BTECNICA" 
                                                ValidateOnLeave="False">
                                                <RegularExpression ErrorText="Formato Incorrecto" 
                                                    ValidationExpression="^(\d|-)?(\d|,)*\.?\d*$" />
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Duración contrato</td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxComboBox ID="cboDuracionBT" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="1" Value="1" />
                                                <dx:ListEditItem Text="1/2" Value="1/2" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True" 
                                                ValidationGroup="BTECNICA" ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="fieldset_filas">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Tipo pago</td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxComboBox ID="cboTipoPagoBT" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Contado" Value="Contado" />
                                                <dx:ListEditItem Text="15 días " Value="15" />
                                                <dx:ListEditItem Text="30 días " Value="30" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True" 
                                                ValidationGroup="BTECNICA" ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="fieldset_filas">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Penalidad % de costo total</td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxComboBox ID="cboPenalidadBT" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" AutoPostBack="True" 
                                            OnValueChanged="cboPenalidadBT_ValueChanged">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="5" Value="5" />
                                                <dx:ListEditItem Text="10" Value="10" />
                                                <dx:ListEditItem Text="15" Value="15" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True" 
                                                ValidationGroup="BTECNICA" ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="pad">
                                        Costo Penalidad</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtCostoPenBT" runat="server" Width="170px" 
                                            ClientEnabled="False">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="BTECNICA" 
                                                ValidateOnLeave="False">
                                                <RegularExpression ErrorText="Formato Incorrecto" 
                                                    ValidationExpression="^(\d|-)?(\d|,)*\.?\d*$" />
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        &nbsp;
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <table style="width:100%">
                                            <tr>
                                                <td align="center" style="width:25%">
                                                    &nbsp;</td>
                                                <td align="center" style="width:25%">
                                                    <dx:ASPxButton ID="btnInformeBT" runat="server" Text="Informe" Width="100px" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                        CausesValidation="False" OnClick="btnInformeBT_Click" 
                                                        ValidationGroup="BTECNICA">
                                                    </dx:ASPxButton>
                                                </td>
                                                 <td align="center" style="width:25%">
                                                     <dx:ASPxButton ID="btnMailBT" runat="server" Text="Mail" Width="100px" 
                                                         CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                         SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                         CausesValidation="False" OnClick="btnMailBT_Click"> 
                                                     </dx:ASPxButton>
                                                </td>
                                                <td align="center">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="4">
                                                &nbsp;</td>
                                            </tr>
                                            <tr>
                                            <td colspan="4">
                                            <table width="100%"  align="center">
                                            <tr>
                                            <td>
                                                <dx:ASPxButton ID="btnGrabarBT" runat="server" Text="Guardar" Width="100px" 
                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                    OnClick="btnGrabarBT_Click" ValidationGroup="BTECNICA">
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnModificarBT" runat="server" Text="Modificar" 
                                                    Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                    CssPostfix="BlackGlass" 
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                    OnClick="btnModificarBT_Click" ValidationGroup="BTECNICA">
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="ASPxButton3" runat="server" Text="Cancelar" Width="100px" 
                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                    AutoPostBack="False" CausesValidation="False">
                                                    <ClientSideEvents Click="function(s, e) {
	popupAgregarBT.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                            </tr>
                                            </table>

                                              </td>
                                          
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <br />
                            <dx:ASPxPopupControl ID="popupMail" runat="server" 
                    AllowDragging="True" ClientInstanceName="popupMail" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    EnableHotTrack="False" HeaderText="Mail" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                                    PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <table align="center" width="100%">
                                            <tr>
                                                <td align="center" colspan="2" class="pad">
                                                    <dx:ASPxLabel ID="lblmenOK0" runat="server" Text="Para:">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtmail" runat="server" Width="300px">
                                                        <ValidationSettings ValidationGroup="ADCMAIL">
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="pad">
                                                    <dx:ASPxButton ID="btnEnviar" runat="server" Text="Enviar Correo" 
                                                        OnClick="btnEnviar_Click" Width="100px" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                        ValidationGroup="ADCMAIL">
                                                    </dx:ASPxButton>
                                                
                                                </td>
                                            </tr>
                                            <tr>
                                                 <td align="center" colspan="2" class="pad">
                                                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Asunto:">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtAsunto" runat="server" Width="300px">
                                                        <ValidationSettings ValidationGroup="ADCMAIL">
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                            <td colspan="3">
                                                 <dx:ASPxLabel ID="lblArchivoAdjunto" runat="server" 
                                                     Text="Buscar archivo y Cargar">
                                                    </dx:ASPxLabel>
                                                 &nbsp;. </td>
                                            
                                            </tr>
                                            <tr>
                                                <td align="left" colspan="3">
                                                    
                                                                            <dx:ASPxUploadControl ID="upcVendedorPNImagen" runat="server" Width="200px" ClientInstanceName="upcVendedorPNImagen"
                                                                                OnFileUploadComplete="upcVendedorPNImagen_FileUploadComplete" FileUploadMode="OnPageLoad"
                                                                                ShowUploadButton="True" 
                                                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                                                <ValidationSettings AllowedFileExtensions=".pdf, .PDF" GeneralErrorText="Error de formato"
                                                                                    MultiSelectionErrorText="Attention!" NotAllowedFileExtensionErrorText="Error de formato">
                                                                                </ValidationSettings>
                                                                                <UploadButton Text="Carga...">
                                                                                </UploadButton>
                                                                            </dx:ASPxUploadControl>
                                                                        </td>
                                                
                                            </tr>
                                            <tr>
                                            <td colspan="3">
                                            
                                                <dx:ASPxMemo ID="txtContenido" runat="server" Height="71px" Width="300px">
                                                </dx:ASPxMemo>
                                            </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                </dx:ASPxPopupControl>
                            <br />
                <dx:ASPxPopupControl ID="popupActualizarOrdenCompra" runat="server" 
                    AllowDragging="True" ClientInstanceName="popupActualizarOrdenCompra" 
                    CloseAction="CloseButton" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                    CssPostfix="BlackGlass" HeaderText="Actualizar Orden Compra" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="500px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl7" runat="server" 
                            SupportsDisabledAttribute="True">
                             <fieldset>
                        <div id="Div2">
                            <table style="width: 97%">
                                <tr>
                                    <td class="pad">
                                        N° OC
                                    </td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtOrdenCompraOC" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            ClientEnabled="False" BackColor="#E6E3E8">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        <dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="5px" 
                                            ClientVisible="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Usuario</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtUsuarioOC" runat="server" Width="170px" 
                                            ClientEnabled="False" BackColor="#E6E3E8">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="pad">
                                        Programa</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtProgramaOC" runat="server" ClientEnabled="False" 
                                            Width="170px" BackColor="#E6E3E8">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Area</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtAreaOC" runat="server" 
                                            Width="170px" BackColor="#E6E3E8" ClientEnabled="False">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="AOC">
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        N° Licencias
                                    </td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtNLicenciasOC" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="AOC" 
                                                ValidateOnLeave="False">
                                                <RegularExpression ErrorText="Formato Incorrecto" 
                                                    ValidationExpression="^(\d|-)?(\d|,)*\.?\d*$" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Sustento</td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtSustentoOC" runat="server" Width="170px" MaxLength="400" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="AOC" 
                                                ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Cuenta</td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtCuentaOC" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="AOC" 
                                                ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Requerido</td>
                                    <td class="pad" style="width: 134px">
                                        <dx:ASPxDateEdit ID="cborequeridoOC" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <CalendarProperties>
                                                <HeaderStyle Spacing="1px" />
                                                <FooterStyle Spacing="4px" />
                                            </CalendarProperties>
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="AOC" 
                                                ValidateOnLeave="False">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                    <td class="style2">
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        &nbsp;
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <table style="width:100%">
                                            <tr>
                                                <td align="center" style="width:33%">
                                                    &nbsp;</td>
                                                <td align="center" style="width:33%">
                                                    &nbsp;</td>
                                                 <td align="center" style="width:33%" class="pad">
                                                     <dx:ASPxButton ID="btnPropuestaOC" runat="server" CausesValidation="False" 
                                                         CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                         SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                         Text="Propuesta" OnClick="btnPropuestaOC_Click">
                                                     </dx:ASPxButton>
                                                </td>
                                                <td align="center" style="width:25%">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" class="pad">
                                                    <dx:ASPxButton ID="btnCAceptarOC" runat="server" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Aceptar" 
                                                        ValidationGroup="AOC">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center" class="pad">
                                                    <dx:ASPxButton ID="btnModificarOC" runat="server" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                        Text="Modificar" OnClick="btnModificarOC_Click" ValidationGroup="AOC">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center" class="pad">
                                                    <dx:ASPxButton ID="btnCancelarOC" runat="server" CausesValidation="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cancelar" 
                                                        AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupActualizarOrdenCompra.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="6">
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>

                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <br />
                <asp:UpdatePanel runat="server" ID="con">
                <ContentTemplate>
                
                <dx:ASPxPopupControl ID="popupPropuesta" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupPropuesta" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    HeaderText="Cargar Propuesta" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="500px" 
                        onload="popupPropuesta_Load">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl8" runat="server" 
                            SupportsDisabledAttribute="True">
                      
                                <div>
                                <table style="width: 480px">
                                <tr>
                                    <td class="pad">
                                        N° OC
                                    </td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtProNroCompra" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            ClientEnabled="False" BackColor="#E6E3E8">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="ASPxTextBox3" runat="server" Width="5px" 
                                            ClientVisible="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Programa</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtProPrograma" runat="server" Width="170px" 
                                            BackColor="#E6E3E8" ClientEnabled="False">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="PROO">
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="pad">
                                        N° Licencias</td>
                                    <td class="pad">
                                        <dx:ASPxTextBox ID="txtProNumeroLicencias" runat="server" 
                                            Width="170px" BackColor="#E6E3E8" ClientEnabled="False">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="O">
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pad">
                                        Proveedor</td>
                                    <td class="pad">
                                        <dx:ASPxComboBox ID="cboProProveedor" runat="server">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="O">
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                    <tr>
                                        <td class="pad">
                                            Archivo pdf</td>
                                        <td class="pad">
                                            <dx:ASPxUploadControl ID="upcPdfPropuesta" runat="server" 
                                                ClientInstanceName="upcVendedorPNImagen" 
                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                FileUploadMode="OnPageLoad" 
                                                OnFileUploadComplete="upcPdfPropuesta_FileUploadComplete" 
                                                ShowUploadButton="True" 
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="200px">
                                                <ValidationSettings AllowedFileExtensions=".pdf, .PDF" 
                                                    GeneralErrorText="Error de formato" MultiSelectionErrorText="Attention!" 
                                                    NotAllowedFileExtensionErrorText="Error de formato">
                                                </ValidationSettings>
                                                <BrowseButton Text="Buscar...">
                                                </BrowseButton>
                                                <UploadButton Text="Cargar...">
                                                </UploadButton>
                                            </dx:ASPxUploadControl>
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                <tr>
                                    <td colspan="3">
                                        &nbsp;
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <table style="width:100%">
                                            <tr>
                                                <td align="center" style="width:33%">
                                                    &nbsp;</td>
                                                <td align="center" style="width:33%">
                                                    &nbsp;</td>
                                                 <td align="center" style="width:33%">
                                                     &nbsp;</td>
                                           
                                            </tr>
                                            <tr>
                                                <td align="center" style="width:50%">
                                                    <dx:ASPxButton ID="btnCargarOC" runat="server" CausesValidation="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cargar" 
                                                        OnClick="btnCargarOC_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center" style="width:50%">
                                                    <dx:ASPxButton ID="btnEliminarOC" runat="server" CausesValidation="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Eliminar">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    &nbsp;</td>
                                                <td align="center">
                                                    &nbsp;</td>
                                                <td align="center">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="3">
                                                    <dx:ASPxGridView ID="grdPropuesta" runat="server" AutoGenerateColumns="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        Width="400px" EnableCallBacks="False"  
                                                        KeyFieldName="CodigoPrograma">
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn FieldName="CodigoPrograma" VisibleIndex="2" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="NombrePrograma" VisibleIndex="1" 
                                                                Caption="Programa">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="estadopropuesta" VisibleIndex="3" 
                                                                Caption="Propuesta">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn VisibleIndex="0" Caption="N° OC" 
                                                                FieldName="NumeroOrdenCompra">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                            ProcessFocusedRowChangedOnServer="True" />
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                            ProcessFocusedRowChangedOnServer="True" />
                                                        <SettingsPager PageSize="10000" Visible="False">
                                                        </SettingsPager>
                                                        <Settings ShowVerticalScrollBar="True" />
                                                        <Settings ShowVerticalScrollBar="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                            CssPostfix="BlackGlass">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                        </Styles>
                                                        <StylesEditors>
                                                            <CalendarHeader Spacing="1px">
                                                            </CalendarHeader>
                                                            <ProgressBar Height="25px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="3">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                            <td align="right">
                                                <dx:ASPxButton ID="btnAceptarPro" runat="server" Text="Aceptar" 
                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                                    OnClick="btnAceptarPro_Click">
                                                </dx:ASPxButton>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxButton ID="btnCancelarPro" runat="server" Text="Cancelar" 
                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                    <ClientSideEvents Click="function(s, e) {
	popupPropuesta.Hide();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                            </tr>

                                        </table>
                                    </td>
                                </tr>
                            </table>
                                </div>
                           
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                </ContentTemplate>
                
                </asp:UpdatePanel>
                
                <br />
                <br />
                <br />
                            </ContentTemplate>



        </asp:UpdatePanel>

       
    </div>
</asp:Content>
